<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/communityMcn',
    'namespace' => 'Frieza\\Modules\\CommunityMcn\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('briefInfo/index/create', 'BriefInfoController@create');
    $router->get('briefInfo/{id}/edit', 'BriefInfoController@create');
    $router->get('briefInfo/{id}/read', 'BriefInfoController@onlyView');
    $router->post('briefInfo/save', 'BriefInfoController@save');
    $router->post('briefInfo/approved', 'BriefInfoController@approved');
    $router->get('briefInfo/index', 'BriefListController@list');
    $router->get('inviteMember/{briefId}/index', 'InviteMemberController@list');
    $router->get('inviteMember/{briefId}/index/create', 'InviteMemberController@create');
    $router->post('inviteMember/save', 'InviteMemberController@save');

    $router->get('suggestion/index', 'SuggestionController@index');
    $router->get('suggestion/create', 'SuggestionController@create');
    $router->post('suggestion/add', 'SuggestionController@add');
    $router->post('inviteMember/{inviteId}/addContent', 'InviteMemberController@addContent');

    $router->get('inviteMember/{inviteId}/createContent', 'InviteMemberController@createContent');

    //好物官
    $router->get('recommenderInfo/index/create', 'RecommenderInfoController@create');
    $router->get('recommenderInfo/{id}/edit', 'RecommenderInfoController@create');
    $router->get('recommenderInfo/index', 'RecommenderListController@index');
    $router->get('joinList/{id}/list', 'JoinListController@index');
    $router->post('joinList/save', 'JoinListController@save');
    $router->post('recommenderInfo/save', 'RecommenderInfoController@save');
    $router->delete('/recommenderInfo/index/{id}', 'RecommenderListController@delIndex');

});
